public class MyButton extends javax.swing.JButton{

	public MyButton(){}
	
	public MyButton(String text){
		this("image/ob015.jpg", "image/ob010.jpg", "image/ob013.jpg",text);
	}
	
	public MyButton(String icon, String pressed, String rollover, String text){
		this.setIcon(new javax.swing.ImageIcon(icon));
		this.setPressedIcon(new javax.swing.ImageIcon(pressed));
		this.setRolloverIcon(new javax.swing.ImageIcon(rollover));
		this.setText(text);
		this.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
		this.setMargin(new java.awt.Insets(0,0,0,0));
	}
}